package com.fy56.platform.goodsTracking.quartz;

import com.fy56.platform.goodsTracking.api.UploadApi;
import com.fy56.platform.goodsTracking.commons.DateUtil;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class LoadingCarUpload {
    @Autowired
    private UploadApi uploadApi;
    static Logger log = Logger.getLogger(LoadingCarUpload.class);
    public void upload() {
         int iloop = 0;
         log.info("执行上传操作(" + DateUtil.Now() + ")");
        //查询所有需要上传的组织代码
            try {
                uploadApi.doUpload_Goods_Car("","");
            } catch (Exception e) {
                log.error("GoodsUpload upload:" + e.getMessage());
            }
        try {
            Thread.sleep(10000);//休息一会

        } catch (InterruptedException ire) {
        }


        //根据
        try {
            Thread.sleep(10000);//休息一会
        } catch (InterruptedException ire) {
        }
    }
}
